<%@ Page Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="EditShipping.aspx.cs" Inherits="EditShipping" Title="Untitled Page" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderAdmin" Runat="Server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>

<h3 id="title">Edit Shipping Method</h3>

    <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" DataSourceID="ObjectDataSource1" GridLines="None" Skin="Black">
        <MasterTableView AutoGenerateColumns="False" CellSpacing="-1" DataSourceID="ObjectDataSource1" AllowAutomaticDeletes="true" >
            <Columns>
            <telerik:GridTemplateColumn UniqueName="TemplateColumn">
                <HeaderTemplate>
                    <asp:LinkButton Font-Underline="true" ID="btnInsert" CommandName="InitInsert" runat="server">New Record</asp:LinkButton>
                </HeaderTemplate>            
                <ItemTemplate>
                    <asp:LinkButton ID="btnEdit" runat="server" CommandName="Edit" Font-Underline="true">Edit</asp:LinkButton>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="ShipID" DataType="System.Int32" HeaderText="ShipID" ReadOnly="True"
                    SortExpression="ShipID" UniqueName="ShipID">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ShipVia" HeaderText="ShipVia" SortExpression="ShipVia"
                    UniqueName="ShipVia">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ShipPrice" DataType="System.Decimal" HeaderText="ShipPrice"
                    SortExpression="ShipPrice" UniqueName="ShipPrice">
                </telerik:GridBoundColumn>
                 <telerik:GridClientDeleteColumn ConfirmText="Are you sure you want to delete the selected row?" 
                                    HeaderStyle-Width="35px" ButtonType="LinkButton" />
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="Entities.ShipInfo" DeleteMethod="Delete" InsertMethod="Insert" SelectMethod="GetAll" TypeName="Bll.ShipBll" UpdateMethod="Update"></asp:ObjectDataSource>
</asp:Content>

